#include "stdafx.h"
#include "Logger.h"

using namespace mcore;

Logger::Logger()
{
	std::ofstream logfile("LOGS.txt");
	logfile << "OK logger created\n";
}

Logger & Logger::get()
{
	static Logger l;
	return l;
}

Logger::~Logger(void)
{
}

void Logger::log(std::string message)
{
	std::ofstream logfile("LOGS.txt", std::ios_base::app);
	logfile << message;
	logfile << "\n";
}
